function h= uifftview_GenerateFcn

ui.Panel.Style={'units', 'pixel', 'BorderType', 'beveledin'};
ui.Disabled={'Enable', 'off'};
ui.CheckBox.Style= {'style', 'checkbox'};

h= uipanel(ui.Panel.Style{:}, 'title', 'FFT');

uicontrol(ui.CheckBox.Style{:}, ...
    'string', 'Show FFT', ...
    'callback', @cbShowFFT_Callback, ...
    'tag', 'cbShowFFT', ...
    'units', 'normalized', ...
    'position', [.05 .65 0.9 .3], ...
    'parent', h);

uicontrol(ui.CheckBox.Style{:}, ...
    'string', 'Show ROI', ...
    'callback', @cbShowFFTROI_Callback, ...
    'tag', 'cbShowFFTROI', ...
    'units', 'normalized', ...
    'position', [.05 .35 0.9 .3], ...
    'parent', h);

uicontrol('style', 'togglebutton', ...
    'string', 'Edit ROI', ...
    'callback', @tbEditFFTROI_Callback, ...
    'tag', 'tbEditFFTROI', ...
    'units', 'normalized', ...
    'position', [.05 .05 0.6 .3], ...
    'parent', h);

uicontrol('style', 'pushbutton', ...
    'string', 'C', ...
    'callback', @pbAdjustFFTContrast_Callback, ...
    'tag', 'pbAdjustFFTContrast', ...
    'units', 'normalized', ...
    'position', [.65 .05 0.3 .3], ...
    'parent', h);

handles= guihandles(h);
cbShowFFT_Callback(handles.cbShowFFT, []);
end

